import { ajax } from 'nc-lightapp-front';

/**
 * 设置业务邮箱
 * @param {*} props 
 * @param {供应商pk} data 
 */
export const setBusinessEmail=  function (props, data,moduleId,fieldid) {
	ajax({
		url: '/nccloud/uapbd/supplier/setBusinessEmail.do',
		data: {userJson:data},
		async: false,
		success: (res) => {
			if (res.success && res.data) {
				props.form.setFormItemsValue(moduleId, {
					[fieldid]: { value: res.data[fieldid], display: null }
				});
			}
		},		
	});
}